@keyframes circleAnimation {
  0% {
    transform: scale(1)
  }

  50% {
    transform: scale(0.6)
  }

  100% {
    transform: scale(1)
  }
}

:global(.bubble) {
  border-radius: 50%;
  animation: circleAnimation 3s infinite;
}

:global {
  .noBackground {
    background: none;
  }

  // 底图层切换风格文字样式
  .leaflet-control-layers-base {
    font-size: 18px;
  }

  .leaflet-retina .leaflet-control .leaflet-control-layers-toggle {
    background-size: 85%;
  }

  // 散点层弹窗
  .marker-tooltip {
    padding: 0;
    border: 0;
    background-color: rgba(0, 0, 0, 0);
    box-shadow: none;
  }

  .leaflet-map-pane canvas {
    z-index: 201;
    pointer-events: none;
  }

  .leaflet-tooltip {
    padding: 0 !important;
  }

  .marker-beat :local{
    // transform: scale(2, 2);
    animation: beatScale 1.5s;
    animation-iteration-count: infinite;

    @keyframes beatScale {
      0% {
        transform: scale(1);
      }

      50% {
        transform: scale(2);
      }

      100% {
        transform: scale(1);
      }
    }
  }

  .leaflet-container a.leaflet-popup-close-button {
    font-size: 28px;
    top: 5px;
    right: 10px;
  }

  .marker-tooltip:before {
    display: none;
  }

  .map-marker-content {
    text-align: left;
    line-height: 1.5em;
    padding: 0 0.5em;
    background-size: 100% 100%;
    background-origin: padding-box;
    background-repeat: no-repeat;
  }

  .marker-popup {
    margin-bottom: 26px;
  }

  .marker-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border: 0;
    background-color: rgba(0, 0, 0, 0);
    box-shadow: none;
  }

  .marker-popup .leaflet-popup-content-wrapper .leaflet-popup-content {
    width: auto !important;
    white-space: nowrap;
    margin: 0;
  }

  .marker-popup .leaflet-popup-tip-container {
    display: none;
  }

  .distanceTool {
    font-size: 20px;
    padding: 10px;
  }

  // 飞线层高度设置
  .leaflet-ODLayer-container {
    z-index: 201;
    pointer-events: none;

    :global {
      div {
        pointer-events: all;
      }
    }
  }

  // 轨迹层高度设置
  .trackPolyline {
    position: relative;
    z-index: 202;
  }

  .leaflet-map-reset-btn {
    z-index: 405;
    position: absolute;
    background: rgba(85, 85, 85, 0.6);
    border: 1px solid rgba(153, 153, 153, 0.5);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    font-size: 18px;
    padding: 7px 12px;
    font-weight: 500;
    top: 10px;
    left: 20px;
    cursor: pointer;

    &:hover {
      box-shadow: 0 1px 6px rgba(85, 85, 85, 0.6);
    }
  }

  // 区域热力图
  .leaflet-map-geo-heat-btn {
    z-index: 405;
    position: absolute;
    background: rgba(85, 85, 85, 0.6);
    border: 1px solid rgba(153, 153, 153, 0.5);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    font-size: 18px;
    padding: 7px 12px;
    font-weight: 500;
    top: 10px;
    left: 100px;
    cursor: pointer;

    &:hover {
      box-shadow: 0 1px 6px rgba(85, 85, 85, 0.6);
    }
  }
}